#include<stdio.h>
#include<stdlib.h>
#include<string.h>
typedef struct
{
    char name[25];
	int nb;
	double sco;
}stu;
int main()
{
   int n,i,k;
   stu *p,*r;
   while((scanf("%d",&n))!=EOF)
   {
   	  k=0;
   	  p=(stu *)calloc(n,sizeof(stu));
   	  r=(stu *)calloc(n,sizeof(stu));
   	  for(i=0;i<n;i++)
   	  {
   	  	getchar();
   	    getchar();
   	  	gets((p+i)->name);
   	  	scanf("%d %lf",&(p+i)->nb,&(p+i)->sco);
   	    if((p+i)->sco<60)
   	    {
   	    	*(r+k)=*(p+i);
   	    	k++;
		}
	  }
	  if(k==0)
	    printf("They are Great!!\n");
	  else
	  {
	  	printf("%d\n",k);
	  	for(i=0;i<k;i++)
	    printf("%s\n",(r+i)->name);
	    for(i=0;i<k;i++)
	    printf("%d\n",(r+i)->nb);
	    for(i=0;i<k;i++)
	    printf("%.2lf\n",(r+i)->sco);
	  }
	  free(r);
      free(p);
   }
   return 0;      
}